//每个todo对象的类型
export interface TPType{
    id:string,
    todoName:string,
    checked:boolean
}

//每个todo对象组成的数组的类型
export type TPList = TPType[]

//键盘事件类型
export interface Target extends HTMLElement{
    value:string
}
export interface TKeyboardEvent extends KeyboardEvent{
    target:Target
}

//onChange事件类型
export interface Checked extends HTMLElement{
    checked:boolean
}
export interface TEvent extends Event{
    target:Checked
}

//子组件接收父组件传入的参数类型限制
export interface TPodoListProps{
    todoList: TPList,
    changeAllTodoChecked: Function,
    deleteALlCheckedTodo: Function
}
